package com.link.play.fit.ai.utils

import android.content.Context
import android.content.Intent
import android.net.Uri
import com.link.play.fit.ai.GlobalConfig

object OpenAgreementUtils {
    fun openPrivacy(context: Context){
        val intent = Intent(Intent.ACTION_VIEW, Uri.parse(GlobalConfig.URL_PRIVACY))
        try {
            context.startActivity(intent)
        }catch (e:Exception){
           e.printStackTrace()
        }
    }
    fun openTerms(context: Context){
        val intent = Intent(Intent.ACTION_VIEW, Uri.parse(GlobalConfig.URL_USE))
        try {
            context.startActivity(intent)
        }catch (e:Exception){
            e.printStackTrace()

        }
    }
}